package com.haorui.lygyd.employeemanager.repository;

import com.haorui.base.core.repository.BaseRepository;
import com.haorui.lygyd.employeemanager.entity.MemberEntity;
import org.springframework.data.repository.query.Param;

/**
 * Created with IntelliJ IDEA.
 * 创建人: 系统生成
 * 日期: Sat Sep 02 20:04:29 CST 2017
 */
public interface MemberRepository extends BaseRepository<MemberEntity, String> {
    MemberEntity findMemberByMiMa(@Param("miMa") String miMa);

    MemberEntity findMemberByMiMaAndId(@Param("miMa") String miMa, @Param("id") String id);

    MemberEntity findMemberByShouJiHaoMaAndMiMa(@Param("shouJiHaoMa") String shouJiHaoMa, @Param("miMa") String miMa);

    MemberEntity findMemberByShouJiHaoMa(@Param("shouJiHaoMa") String shouJiHaoMa);

    MemberEntity findMemberByShengFenZhengHao(@Param("shengFenZhengHao") String shengFenZhengHao);

}
